<?php $this->registerResourcePackage('bootstrapDatetimepicker')?>
<div class="form-group">
	<label class="col-sm-3 control-label"><?php echo $params['label']; ?></label>
	<div class="col-sm-7"
		data-errors='<?php echo json_encode($errors)?>'>
		<input type="text"
			name="<?php echo $name ?>" 
			value="<?php if(!empty($value)) {echo $value; }?>" 
			data-date-format="<?=$params['formatForOption']?>" 
			class="with-datetimepicker form-control" 
			<?php echo $this->prepareAttr($params['htmlOptions']);?>
		>
		
		<div class="element-notice description"><?php echo $params['description']; ?></div>
		<div class="element-notice error"><?php echo implode(', ', $errors) ?></div>
	</div>
</div>
